# coding: utf-8
from PySide6.QtCore import QObject, Signal, QRunnable


class SignalBus(QObject):
    """ Signal bus """
    micaEnableChanged = Signal(bool)
    # 应用信号
    appMessageSig = Signal(str)
    appErrorSig = Signal(str)
    # 数据库连接信号
    dbSendSig = Signal(object)
    dbResultSig = Signal(object)
    # 任务管理器信号
    taskAddedSig = Signal(object)  # tid
    taskReAddSig = Signal(object)  # type: QRunnable
    # 任务信号
    taskMsgSig = Signal(object)
    # 清空缓存
    clearCacheSig = Signal()


signalBus = SignalBus()
